Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useArgumentFile option to help with Command line is too long error #42

Merged
merged 4 commits into from
May 15, 2018

Conversation

cheister
Copy link

@cheister cheister commented May 9, 2018

This is primarily to address #5

I've only tested it on OSX and Linux. I don't have a Windows setup to test with.

A nicer option might be to detect if protoc is 3.5.0 or higher and then automatically put the args in the argumentFile but I wasn't sure how to get the protoc version in a nice way.

@sergei-ivanov sergei-ivanov self-assigned this May 9, 2018
@sergei-ivanov sergei-ivanov self-requested a review May 9, 2018 20:52
@sergei-ivanov sergei-ivanov added this to the 0.6 milestone May 9, 2018
@sergei-ivanov
Copy link
Member

Thanks for that, I think that should be good enough for everyone. I am going to update the documentation and FAQ.
I've tested it on Windows, and there have been no regressions, but we'll also need to add a couple of integration tests in order to verify the new functionality.

@cheister
Copy link
Author

cheister commented May 10, 2018

SG. I added one basic integration test for the useArgumentFile option.

@sergei-ivanov
Copy link
Member

sergei-ivanov commented May 10, 2018 via email

- added an integration test for useArgumentFile option
- fixed writing unicode file names to the argument file
- fixed handling of unicode output from protoc
- simplified path normalisation, tested on both Windows and Linux
@sergei-ivanov
Copy link
Member

Hi,

I've pushed my changes to your PR branch. I've tested them on both Windows and Linux, and the tests pass. I ended up removing path normalisation, because everything works without it on both OSes. I have also added better handling of unicode output and unicode file names (covered by the new integration test too).

Can you please test it on MacOS by running:

./mvnw clean verify -P run-its -Dinvoker.test='setup-*',TEST-29

If that works, we are good. I'll merge it as soon as you let me know that you're happy with the changes.

Sergey

@cheister
Copy link
Author

The changes look good to me.

The above command also works on OSX (10.13) for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants